package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 提问表
 * </p>
 *
 * @author stylefeng
 * @since 2019-10-07
 */
@TableName("biz_knowledge_answers")
@Data
public class KnowledgeAnswers extends Model<KnowledgeAnswers> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 消息内容
     */
    private String message;
    /**
     * 状态 1已解决 0未解决
     */
    private Integer state;
    /**
     * 技师ID
     */
    private Integer artificerId;
    /**
     * 消费ID
     */
    private Integer consumerId;
    /**
     * 提问时间
     */
    private Date createDate;
    /**
     * 解答时间
     */
    private Date updateDate;
    /**
     * 提问的手机号
     */
    private String phone;
    /**
     * 知识库id
     */
    private Integer knowledgeId;
    /**
     * 图片1
     */
    private String imageA;
    /**
     * 图片2
     */
    private String imageB;
    /**
     * 图片3
     */
    private String imageC;
    /**
     * 图片4
     */
    private String imageD;



    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "KnowledgeAnswers{" +
        "id=" + id +
        ", message=" + message +
        ", state=" + state +
        ", artificerId=" + artificerId +
        ", consumerId=" + consumerId +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        ", phone=" + phone +
        ", knowledgeId=" + knowledgeId +
        ", imageA=" + imageA +
        ", imageB=" + imageB +
        ", imageC=" + imageC +
        ", imageD=" + imageD +
        "}";
    }
}
